﻿
@model TCM.Exam

@{
    ViewBag.Title = "Create";
}

<h2>New Exam</h2>



@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Exam</legend>
            <ol>
        <li class="editor-label">
            @Html.LabelFor(model => model.Name)
       
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.NameAr)
      
            @Html.EditorFor(model => model.NameAr)
            @Html.ValidationMessageFor(model => model.NameAr)
        </li>

        @*<li class="editor-label">
            @Html.LabelFor(model => model.Title)
      
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.TitleAr)
        
            @Html.EditorFor(model => model.TitleAr)
            @Html.ValidationMessageFor(model => model.TitleAr)
        </li>        *@

        <li class="editor-label">
            @Html.LabelFor(model => model.Date )
        
            @Html.EditorFor(model => model.Date)
            @Html.ValidationMessageFor(model => model.Date)
          
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.ExamType)
        
            @Html.DropDownList("Type", String.Empty)      
            @Html.ValidationMessageFor(model => model.ExamType)
        </li>

       

        <li class="editor-label">
            @Html.LabelFor(model => model.StatusID)
                 
            @Html.DropDownList("StatusID", String.Empty)
            @Html.ValidationMessageFor(model => model.StatusID)
        </li>     
        </ol>
        
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
     
}   

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
<script type="text/javascript">
    $('#Date').datepicker();
</script>